package com.cuzofu.fs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cuzofu.fs.common.PageUtils;
import com.cuzofu.fs.common.Query;
import com.cuzofu.fs.dao.MarkDao;
import com.cuzofu.fs.entity.MarkEntity;
import com.cuzofu.fs.service.MarkService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("markService")
public class MarkServiceImpl extends ServiceImpl<MarkDao, MarkEntity> implements MarkService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MarkEntity> page = this.page(
                new Query<MarkEntity>().getPage(params),
                new QueryWrapper<MarkEntity>()
        );

        return new PageUtils(page);
    }

}